package com.oneandseven.dajia.controller.album;

import com.oneandseven.dajia.base.response.BaseResponse;
import com.oneandseven.dajia.entity.album.AlbumTagEntity;
import com.oneandseven.dajia.service.album.IAlbumTagService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/album/tags")
@AllArgsConstructor
public class AlbumTagController {

    private final IAlbumTagService albumTagService;

    @PostMapping("/queryall")
    public BaseResponse<AlbumTagEntity> queryAll() {
        return new BaseResponse(albumTagService.queryAll());
    }
}
